﻿<%@ Assembly Name="UI.Web.MVC.Moduls.News" %>
<%@ Import Namespace="System.Web.Mvc" %>
<%@ Import Namespace="System.Web.Mvc.Ajax" %>
<%@ Import Namespace="MvcContrib.UI.Grid" %>
<%@ Import Namespace="SailHero.Soft.FrameWork.Models" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PagedList<TB_CLIENTS>>" %>
<%@ Import Namespace="UI.Web.Utility.MvcPager" %>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div id="dvOrders" style="height: 100%; position: relative;margin-left:auto;margin-right:auto;">
    <%
        =Html.Grid((IEnumerable<TB_CLIENTS>)ViewBag.ListData).Sort(ViewData["sort"] as GridSortOptions).Columns(column =>
        {
            column.For(x => x.ID).Named(
                "数据ID");
            column.For(x => x.MN).Named(
                "现场机MN号");
                column.For(x => x.MCNNAME).Named(
                "现场机名称");    
            column.For(x => x.ONLINESTATE).Named(
                "在线状态");          
        }).Empty("暂无数据")
    %>
    <div class="fanye" style="position: relative;">
        <%=Html.AjaxPager(Model, new PagerOptions() { CssClass = "mvcPager", PageIndexParameterName = "pageIndex", ShowMorePagerItems = false, AlwaysShowFirstLastPageNumber = true, ShowPageIndexBox = true, PageIndexBoxWrapperFormatString = "页{0}" }, new AjaxOptions() { UpdateTargetId = "dvOrders" })%>
    </div>
</div>
</asp:Content>
